﻿<UserControl x:Class="Reggie.UI.Views.ReggieBasicView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:Reggie.UI.ViewModels"
             mc:Ignorable="d" Height="438" Width="507" UseLayoutRounding="False">
    <UserControl.DataContext>
        <vm:RegexViewModel />
    </UserControl.DataContext>
    <Grid>
        <Label Content="Sample Text to Parse" Height="28" Name="label1" VerticalAlignment="Top" Margin="12,12,244,0" />
        <TextBox Name="TextToParse" Height="87" HorizontalAlignment="Left" Margin="12,37,0,0" VerticalAlignment="Top" Width="480" TextWrapping="WrapWithOverflow" VerticalScrollBarVisibility="Auto" AcceptsReturn="True" AcceptsTab="True" Text="{Binding Path=RegExTest.TestString}" />
        <Label Content="Regular Expression" Height="28" Margin="12,135,244,0" Name="label2" VerticalAlignment="Top" />
        <TextBox Height="87" HorizontalAlignment="Left" Margin="12,160,0,0" Name="RegularExpression" VerticalAlignment="Top" Width="480"  Text="{Binding Path=RegExTest.Pattern}" />
        <Label Content="Output" Height="28" Margin="12,314,244,0" Name="label3" VerticalAlignment="Top" />
        <Button Content="_Try Expression" Height="23" HorizontalAlignment="Left" Margin="12,253,0,0" Name="TryExpression" VerticalAlignment="Top" Width="103" Command="{Binding Path=Execute}" />
        <TextBox Height="87" HorizontalAlignment="Left" Margin="12,339,0,0" Name="Output" VerticalAlignment="Top" Width="480" Text="{Binding Path=Result, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" />
    </Grid>
</UserControl>
